# coding=utf-8
"""
Created on 2018年8月9日
"""

from common_base.constants import LanguageType


class AliveApiError(object):
    """
    错误码
    """

    ERROR_TEST = 10000
    ERROR_USER_DOES_NOT_EXIST = 10001
    ERROR_BLOCKED_BY_THE_AUTHOR = 10002
    ERROR_ARTICLE_DOES_NOT_EXIST = 10003
    ERROR_ALREADY_LIKED = 10004

    message = {
        ERROR_TEST: {LanguageType.CN: '测试一个错误', LanguageType.EN: 'test err'},
        ERROR_USER_DOES_NOT_EXIST: {LanguageType.CN: '用户不存在', LanguageType.EN: 'user does not exist'},
        ERROR_BLOCKED_BY_THE_AUTHOR: {LanguageType.CN: '您已经被作者屏蔽了', LanguageType.EN: 'You are blocked by the author.'},
        ERROR_ARTICLE_DOES_NOT_EXIST: {LanguageType.CN: '视频不存在', LanguageType.EN: 'Article does not exist.'},
        ERROR_ALREADY_LIKED: {LanguageType.CN: '已经点过赞了', LanguageType.EN: 'already liked.'}
    }
